package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.SymptomTask.SymptomRequest;
import com.smiier.skin.net.SymptomTask.SymptomResponse;
import com.smiier.skin.util.GlobalSettings;

@SuppressWarnings("serial")
public class SymptomTask extends NetTask<SymptomRequest, SymptomResponse> {
	public static class SymptomRequest extends ORequest {
		public String appname = Constant.APP_NAME;
	}

	public static class SymptomResponse extends ArrayList<SymptomItem>
			implements INoProguard {

	}

	public static class SymptomItem implements INoProguard {
		public String Name;
		public String desc;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_FIXED_JOIN
				+ "Symptom.txt";
		mRequestMethod = METHOD_GET;
	}

}
